package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Client;
import cn.wolfcode.crm.domain.FormalStudent;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IClientService {
    int insert(Client record);

    int updateByPrimaryKey(Client record);

    List<Client> selectAll();

    PageResult query(QueryObject qo);

    int deleteByPrimaryKey(Long id);

    PageResult query4Prospect(QueryObject qo);

    void follow(Long id);

    void resourcePool(Long clientId);

    void positive(Long clientId,FormalStudent formalStudent);

    void updateByStudentTracking(Client client);


    void updateByTracking(Long id);

    void updateClient(Client client);

    Boolean validateName(String tel, String name);
}
